package dev.ece.suit.loader;

import dev.ece.core.cells.model.action.ActionManager;

/**
 * 帧动画
 * @author 潜行的虚影
 *
 */
public class Frame<T extends Number & Comparable<T>> {

	private ActionManager<T> actionManager;
			
	private T current;
	/**
	 * 网格索引
	 * mesh indice
	 */
	private int[] indice;

	/**
	 * 逻辑运算
	 */
	public void logic() {
		this.setCurrent(actionManager.current());
	}
	
	protected void setActionManager(ActionManager<T> actionManager) {
		this.actionManager = actionManager;
	}

	public ActionManager<T> getActionManager() {
		return actionManager;
	}

	protected void setCurrent(T current) {
		this.current = current;
	}

	public T getCurrent() {
		return current;
	}

	public int[] getIndice() {
		return indice;
	}

	public void setIndice(int[] indice) {
		this.indice = indice;
	}
	
}
